<?php session_start(); ?>
<!DOCTYPE html>
<html>
	<head>
		<title>修改资料</title>
		<meta charset="utf-8"/>
		<link href="../css/register.css" rel="stylesheet" type="text/css"/>
	</head>
    <body>
         <?php
               
                 if((!isset($_SESSION['flag'])) || ($_SESSION['flag'] != md5($_SESSION['user']['userName']))){
                     echo 'header("Location:../login.php")';
                        }
                ?>

        <form action="doupdate.php" method="post" enctype="multipart/form-data">
            <div id="head">
                <div >
                   <?php include('../../public/config/config.php'); ?>
                    <a href="../index.php"><img src="../../public/config/<?php echo LOGO ?>"></a>
                </div>
                <div ><img  id="tu2" src="../../public/home/images/tou.jpg">
                </div>
            </div>
            <div id="body">
                <div id="zhuce">
                    修改个人资料
                </div>
                <div id="zhutizuo">
                    <div id="hang2">用户名&nbsp;&nbsp;<input type="text" name="userName" size="35px"/></div>
                    <div id="hang6">电子邮箱&nbsp;&nbsp;<input type="text" name="email" size="35px"/></div>
                    <div id="hang14">昵称&nbsp;&nbsp; <input type="text" name="name" size="35px"/></div>
                    <div id="hang7">QQ号码&nbsp;&nbsp; <input type="text" name="qq" size="35px"/></div>
                    <div id="hang7">上传头像&nbsp;&nbsp;<input type="file" name="upload"/></div>
                    <div id="hang8">现居住地&nbsp;&nbsp;
                        <select name="sheng">
                            <option value="1">
                                请选择
                            </option>
                            <option value="hebei">
                                河北
                            </option>
                        </select>
                        <select name="shi">
                            <option value="1">
                                请选择
                            </option>
                            
                            <option value="hengshui">
                                衡水市
                            </option>
                            <option value="tangshan">
                                唐山
                            </option>
                        </select>
                        <select name="xian">
                            <option value="1">
                            请选择
                            </option>
                            <option value="anping">
                                安平
                            </option>
                            <option value="raoyang">
                                饶阳
                            </option>
                            <option value="wuyi">
                                武邑
                            </option>
                        </select>
                    </div>
                    <div id="hang9">安全问题&nbsp;&nbsp;
                        <select name="question">
                            <option value="0">
                                无安全问题
                            </option>
                            <option value="1">
                                您的初中班主任是谁?
                            </option>
                            <option value="2">
                                您的父亲是谁?
                            </option>
                            <option value="3">
                                您第一次去哪里旅游?
                            </option>
                            <option value="4">
                                您的愿望是什么?
                            </option>
                        </select>
                    </div>
                    <div id="hang10">您的答案&nbsp;&nbsp;
                        <input type="text" name="answer" size="35px"/>
                    </div>
                    <div id="hang13">
                        验证码&nbsp;&nbsp;<input type="text" name="code" size="10" /><img src="../code.php">
                    </div>
                
                    <div id="hang12">
                        <input type="submit" value="确认修改"/>
                    </div>
                </div>
                <div id="zhutiyou">
                    <div id="you1">已经拥有帐号？<br/>
                        <a href="./login.php"><img src="../../public/home/images/mashangdenglu.jpg"/></a>
                    </div>
                    <div id="you2">
                        使用合作网站帐号登录：
                    </div>
                    <div id="you3">
                        <img src="../../public/home/images/xiaoqie.jpg"/> <a href>QQ帐号</a>
                    </div>
                    <div id="you4">
                        <img src="../../public/home/images/huli.jpg"/> <a href>微博帐号</a>
                    </div>
                    
                </div>
            </div>
            <div id="foot"><br/><br/>
                Powered by phpwind v8.7 Certificate Copyright Time now is:03-20 15:09
                <br/>&copy;2006-2015 LAMP兄弟连版权所有Gzip disabled 京ICP备11018177号 Total 0.075067(s)query 3,<img src="../../public/home/images/pic.gif">
            </div>
        </form>
	</body>
</html>

